package day08_Extends.demo02_Extends;

public class Test {
    public static void main(String[] args) {
        Student student = new Student();
        student.setAge(18);
        System.out.println(student.getAge());
        student.study();
        Teacher teacher = new Teacher();
        teacher.job();
        teacher.setName("火火");
        System.out.println(teacher.getName());
        teacher.setMoney(10000);
        System.out.println(teacher.getMoney());
    }
}
